<?php
/*
 * Copyright 2013 by Sawyer Bowman, Jim Garvey, Kevin Tabb, Nick Wetzel, and Allen
 * Tucker.  This program is part of Homeplate, which is free software.  It comes
 * with absolutely no warranty.  You can redistribute and/or modify it under the
 * terms of the GNU Public License as published by the Free Software Foundation
 * (see <http://www.gnu.org/licenses/).
 */

/**
 * Volunteer class for Homecheck
 * @author Alex Edison
 * @version updated February 28, 2012
 */

function connect() {
	$host = "localhost";
	$database = "mchhomeplatedb";
	$user = "mchhomeplatedb";
	$password = "cs315";

	$connected = mysql_connect($host,$user,$password);
	if (!$connected) return mysql_error();
	$selected = mysql_select_db($database, $connected);
	if (!$selected) return mysql_error();
	else return true;
}
?>